// 2. 实现类 - 支付宝支付
package com.example.spi.impl;

import com.example.spi.PaymentService;

public class AlipayService implements PaymentService {
    @Override
    public void pay(double amount) {
        System.out.println("使用支付宝支付: " + amount + " 元");
    }

    @Override
    public String getPaymentType() {
        return "Alipay";
    }
}
